package cn.cjxy.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController//标记此为一个controller层且返回的数据为json格式
public class HelloController {


    @RequestMapping("/hello")//http://localhost:8080/hello
    public String hello() {
        return "hello world";
    }
}
